]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: stop monitoring file after removing from cache
authorRay Strode <rstrode@redhat.com>
Thu, 4 Apr 2013 20:36:56 +0000 (16:36 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 6 Apr 2013 14:45:53 +0000 (10:45 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=697395

js/ui/background.js

index 2dbde4adecf322b26b6c96ec1fc0cb846eb4d5d1..0e9c3aa953fbf601387ccb112f38d52b7c4dd61c 100644 (file)
@@ -126,6 +126,11 @@ const BackgroundCache = new Lang.Class({
     },
 
     removeImageContent: function(content) {
+        let filename = content.get_filename();
+
+        if (filename && this._fileMonitors[filename])
+            delete this._fileMonitors[filename];
+
         this._removeContent(this._images, content);
     },